package client;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class ErrorBox extends JFrame {
	
	private static final long serialVersionUID = 1L;

	public ErrorBox(String mes){
		super("Invalid");
		setSize(300,100);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		JLabel errormessage = new JLabel(mes);
		
		add(errormessage);
		
		setVisible(true);
		
	}
}
